/// Author: QP
/// Version: 1.0
/// Date:2021/07/01
/// 用药章节 - 处方条目子表
/// 用于《西药处方》、《中药处方》、《出入量记录》
Class HCC.SQL.Document.MedicationUseHistory.MedicineItem Extends (%Persistent, %XML.Adaptor, HCC.SQL.Base) [ DependsOn = HCC.SQL.Base ]
{

/// 药物使用途径代码
Property route As WS.DE.DE060013400 [ SqlFieldName = route ];

/// 单次用药剂量(例如：2)，用于《西药处方》、《出入量记录》
Property dose As WS.DE.DE085002300 [ SqlFieldName = dose ];

/// 用药剂量单位(例如：mg)
Property doseUnit As %String [ InitialExpression = "mg", SqlFieldName = dose_unit ];

/// 药物使用频率 (例如：2)
Property rate As WS.DE.DE060013300 [ SqlFieldName = rate ];

/// 药物使用频率单位(例如：次/天)
Property rateUnit As %String [ InitialExpression = "次/天", SqlFieldName = rate_unit ];

/// 药物剂型代码
Property form As WS.DE.DE085001100 [ SqlFieldName = form ];

/// 药物名称
Property name As WS.DE.DE085002200 [ SqlFieldName = name ];

/// 药物规格
Property spec As WS.DE.DE085004300 [ SqlFieldName = spec ];

/// 药物使用总剂量
Property totalDose As WS.DE.DE060013500 [ SqlFieldName = total_dose ];

/// 药物用法，用于《出入量记录》
Property useWay As WS.DE.DE060013600 [ SqlFieldName = use_way ];

/// 中药使用类别代码，用于《出入量记录》
Property TCMType As WS.DE.DE060016400 [ SqlFieldName = TCM_type ];

/// 文档编号
Relationship MedicationUseHistory As HCC.SQL.Document.MedicationUseHistory [ Cardinality = parent, Inverse = MedicineItems, SqlFieldName = DocumentNo ];


}
